package com.chexiehui.jc.widget;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.ImageView;

import com.bumptech.glide.Glide;

import java.util.List;

public class PengYouQuanFlagLayout extends PengYouQuanFlagView{
    private String TAG = PengYouQuanFlagLayout.class.getSimpleName();
    private Context mContext;
    public PengYouQuanFlagLayout(Context context) {
        this(context,null);
    }

    public PengYouQuanFlagLayout(Context context, AttributeSet attrs) {
        super(context, attrs);
        this.mContext = context;
    }

    @Override
    protected void displayImage(int position, ImageView imageView, String url) {
        if (mContext!=null){
            Glide.with(mContext).load(url).into(imageView);
        }
    }

    @Override
    protected void onClickImage(int position, String url, ImageView imageView, List<String> imgList) {
        //处理图片地方
    }
}
